home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Framework / Sources / ErrorMgr.r < prev    next >
Encoding:
Text File  |  1996-04-03  |  25.5 KB  |  1,168 lines  |  [TEXT/MPS ]

  1. /*
  2.     ErrorMgr.r
  3.     MacApp® Error manager Resources
  4.     Copyright © 1990-96 by Apple Computer, Inc. All rights reserved.
  5. */
  6.  
  7. /* • Auto-Include the requirements for this source */
  8. #ifndef __TYPES_R__
  9. #include "Types.r"
  10. #endif
  11.  
  12. #ifndef __MacAppTypes__
  13. #include "MacAppTypes.r"
  14. #endif
  15.  
  16. #ifndef __ViewTypes__
  17. #include "ViewTypes.r"
  18. #endif
  19.  
  20. /* NOTE:
  21.  
  22.     By Toolbox convention, the OK button is item 1 and the Cancel button
  23.         is item 2.
  24. */
  25.  
  26. /* one of 3 alerts for indicating errors */
  27. resource 'DITL' (phGenError,
  28. #if qNames
  29.     "phGenError",
  30. #endif
  31. purgeable) {
  32.     {    /* array DITLarray: 3 elements */
  33.         /* [1] */
  34.         {151, 288, 171, 348},
  35.         Button {
  36.             enabled,
  37.             "OK"
  38.         },
  39.         /* [2] */
  40.         /*    ^0 = reason for error; e.g., 'the disk is locked'
  41.             ^1 = how to recover; e.g., 'Eject the disk and move the tab.'
  42.             ^2 = what operation failed; e.g., 'save the document'
  43.         */
  44.         {10, 75, 138, 348},
  45.         StaticText {
  46.             disabled,
  47.             "Could not ^2 because ^0. ^1"
  48.         },
  49.         /* [3] */
  50.         {10, 20, 42, 52},
  51.         Icon {
  52.             disabled,
  53.             stopIcon
  54.         }
  55.     }
  56. };
  57.  
  58. resource 'DITL' (phCommandError,
  59. #if qNames
  60.     "phCommandError",
  61. #endif
  62.     purgeable) {
  63.     {    /* array DITLarray: 3 elements */
  64.         /* [1] */
  65.         {151, 288, 171, 348},
  66.         Button {
  67.             enabled,
  68.             "OK"
  69.         };
  70.         /* [2] */
  71.         /*    ^0 = reason for error; e.g., 'the disk is locked'
  72.             ^1 = how to recover; e.g., 'Eject the disk and move the tab.'
  73.             ^2 = what menu command failed; e.g., 'New'
  74.         */
  75.         
  76.         {10, 75, 138, 348},
  77.         StaticText {
  78.             disabled,
  79.             "Could not complete the '^2' command because ^0. ^1"
  80.         };
  81.         /* [3] */
  82.         {10, 20, 42, 52},
  83.         Icon {
  84.             disabled,
  85.             stopIcon
  86.         }
  87.     }
  88. };
  89.  
  90. resource 'DITL' (phUnknownErr,
  91. #if qNames
  92.     "phUnknownErr",
  93. #endif
  94.     purgeable) {
  95.     {    /* array DITLarray: 3 elements */
  96.         /* [1] */
  97.         {151, 288, 171, 348},
  98.         Button {
  99.             enabled,
  100.             "OK"
  101.         };
  102.         /* [2] */
  103.         /*    ^0 = reason for error; e.g., 'the disk is locked'
  104.             ^1 = how to recover; e.g., 'Eject the disk and move the tab.'
  105.             This alert is used if the program does not provide any indication
  106.                 of what operation failed.
  107.         */
  108.         
  109.         {10, 75, 138, 348},
  110.         StaticText {
  111.             disabled,
  112.             "Could not complete your request because ^0. ^1"
  113.         };
  114.         /* [3] */
  115.         {10, 20, 42, 52},
  116.         Icon {
  117.             disabled,
  118.             stopIcon
  119.         }
  120.     }
  121. };
  122.  
  123.  
  124. /* used when the space is very low */
  125.  
  126. resource 'DITL' (phSpaceIsLow,
  127. #if qNames
  128.     "phSpaceIsLow",
  129. #endif
  130.     purgeable) {
  131.     {    /* array DITLarray: 3 elements */
  132.         /* [1] */
  133.         {55, 288, 75, 348},
  134.         Button {
  135.             enabled,
  136.             "OK"
  137.         };
  138.         /* [2] */
  139.         {10, 75, 42, 348},
  140.         StaticText {
  141.             disabled,
  142.             "Memory space is low. Some commands may be disabled."
  143.         };
  144.         /* [4] */
  145.         {10, 20, 42, 52},
  146.         Icon {
  147.             disabled,
  148.             noteIcon
  149.         }
  150.     }
  151. };
  152.  
  153.  
  154. /* used when the user attempts to run an app on unsupported ROMs */
  155.  
  156. resource 'DITL' (phUnsupportedConfiguration,
  157. #if qNames
  158.     "phUnsupportedConfiguration",
  159. #endif
  160.     purgeable) {
  161.     {    /* array DITLarray: 3 elements */
  162.         /* [1] */
  163.         {71, 288, 91, 348},
  164.         Button {
  165.             enabled,
  166.             "OK"
  167.         };
  168.         /* [2] */
  169.         {10, 75, 58, 348},
  170.         StaticText {
  171.             disabled,
  172.             "Your computer lacks the required hardware or system software to run this application."
  173.         };
  174.         /* [3] */
  175.         {10, 20, 42, 52},
  176.         Icon {
  177.             disabled,
  178.             stopIcon
  179.         }
  180.     }
  181. };
  182.  
  183. /* used to confirm saving changes to a document when closing or quitting */
  184.  
  185. resource 'DITL' (phSaveChanges,
  186. #if qNames
  187.     "phSaveChanges",
  188. #endif
  189.     purgeable) {
  190.     {    /* array DITLarray: 5 elements */
  191.         /* [1] */
  192.         {71, 288, 91, 348},
  193.         Button {
  194.             enabled,
  195.             "Save"
  196.         },
  197.         /* [2] */
  198.         {71, 215, 91, 275},
  199.         Button {
  200.             enabled,
  201.             "Cancel"
  202.         },
  203.         /* [3] */
  204.         {71, 72, 91, 156},
  205.         Button {
  206.             enabled,
  207.             "Don't Save"
  208.         },
  209.         /* [4] */
  210.         {10, 75, 58, 348},
  211.         StaticText {
  212.             disabled,
  213.             "Save changes to the ^2 document '^0' before ^1?"
  214.         },
  215.         /* [5] */
  216.         {10, 20, 42, 52},
  217.         Icon {
  218.             disabled,
  219.             cautionIcon
  220.         }
  221.     }
  222. };
  223.  
  224. /* used to confirm a Revert command */
  225.  
  226. resource 'DITL' (phRevert,
  227. #if qNames
  228.     "phRevert",
  229. #endif
  230.     purgeable) {
  231.     {    /* array DITLarray: 4 elements */
  232.         /* [1] */
  233.         {71, 288, 91, 348},
  234.         Button {
  235.             enabled,
  236.             "Revert"
  237.         },
  238.         /* [2] */
  239.         {71, 215, 91, 275},
  240.         Button {
  241.             enabled,
  242.             "Cancel"
  243.         },
  244.         /* [3] */
  245.         {10, 75, 58, 348},
  246.         StaticText {
  247.             disabled,
  248.             "Revert to the last saved version of '^0'?"
  249.         },
  250.         /* [4] */
  251.         {10, 20, 42, 52},
  252.         Icon {
  253.             disabled,
  254.             cautionIcon
  255.         }
  256.     }
  257. };
  258.  
  259.  
  260. /* used when a document changes unexpectedly on the disk; e.g., if
  261.     the document in on a file server and 2 people open it */
  262.  
  263. resource 'DITL' (phFileChanged,
  264. #if qNames
  265.     "phFileChanged",
  266. #endif
  267.     purgeable) {
  268.     {    /* array DITLarray: 4 elements */
  269.         /* [1] */
  270.         {103, 288, 123, 348},
  271.         Button {
  272.             enabled,
  273.             "OK"
  274.         };
  275.         /* [2] */
  276.         {103, 215, 123, 275},
  277.         Button {
  278.             enabled,
  279.             "Cancel"
  280.         };
  281.         /* [3] */
  282.         /*    ^0 = name of document
  283.             ^1 = the operation (e.g., 'save' or 'revert')
  284.         */
  285.         
  286.         {10, 75, 90, 348},
  287.         StaticText {
  288.             disabled,
  289.             "The disk copy of '^0' was changed since you last "
  290.             "opened or saved it. Do you want to ^1 anyway?"
  291.         };
  292.         /* [4] */
  293.         {10, 20, 42, 52},
  294.         Icon {
  295.             disabled,
  296.             cautionIcon
  297.         }
  298.     }
  299. };
  300.  
  301. /* Used when the document cannot be saved unless the original version is
  302.     deleted from the disk.    This gives the user a chance to confirm this. */
  303.     
  304. resource 'DITL' (phPurgeOld,
  305. #if qNames
  306.     "phPurgeOld",
  307. #endif
  308.     purgeable) {
  309.     {    /* array DITLarray: 4 elements */
  310.         /* [1] */
  311.         {103, 288, 123, 348},
  312.         Button {
  313.             enabled,
  314.             "Delete"
  315.         };
  316.         /* [2] */
  317.         {103, 215, 123, 275},
  318.         Button {
  319.             enabled,
  320.             "Cancel"
  321.         };
  322.         /* [3] */
  323.         {10, 75, 90, 348},
  324.         StaticText {
  325.             disabled,
  326.             "There is not enough disk space to save the document "
  327.             "unless the existing copy is deleted first. Delete existing copy of '^0'?"
  328.         };
  329.         /* [4] */
  330.         {10, 20, 42, 52},
  331.         Icon {
  332.             disabled,
  333.             cautionIcon
  334.         }
  335.     }
  336. };
  337.  
  338. /* used when the user opens the same document twice */
  339.  
  340. resource 'DITL' (phReopenDoc,
  341. #if qNames
  342.     "phReopenDoc",
  343. #endif
  344.     purgeable) {
  345.     {    /* array DITLarray: 3 elements */
  346.         /* [1] */
  347.         {55, 288, 75, 348},
  348.         Button {
  349.             enabled,
  350.             "OK"
  351.         };
  352.         /* [2] */
  353.         /*    ^0 = name of document
  354.         */
  355.         
  356.         {10, 75, 42, 348},
  357.         StaticText {
  358.             disabled,
  359.             "'^0' is already open."
  360.         };
  361.         /* [4] */
  362.         {10, 20, 42, 52},
  363.         Icon {
  364.             disabled,
  365.             stopIcon
  366.         }
  367.     }
  368. };
  369.  
  370.  
  371. /* used to offer a read-only copy of a file when writing isn't possible */
  372.  
  373. resource 'DITL' (phOfferReadOnly,
  374. #if qNames
  375.     "phOfferReadOnly",
  376. #endif
  377.     purgeable) {
  378.     {    /* array DITLarray: 4 elements */
  379.         /* [1] */
  380.         {71, 288, 91, 348},
  381.         Button {
  382.             enabled,
  383.             "OK"
  384.         };
  385.         /* [2] */
  386.         {71, 215, 91, 275},
  387.         Button {
  388.             enabled,
  389.             "Cancel"
  390.         };
  391.         /* [3] */
  392.         /*    ^0 = name of document */
  393.         {10, 75, 58, 348},
  394.         StaticText {
  395.             disabled,
  396.             "'^0' can't be opened for writing. Do you want to open it anyway?"
  397.         };
  398.         /* [4] */
  399.         {10, 20, 42, 52},
  400.         Icon {
  401.             disabled,
  402.             cautionIcon
  403.         }
  404.     }
  405. };
  406.  
  407. /* Used in dialogs and TEViews when the user exceeds the # of characters */
  408.  
  409. resource 'DITL' (phTooManyChars,
  410. #if qNames
  411.     "phTooManyChars",
  412. #endif
  413.     purgeable) {
  414.     {    /* array DITLarray: 3 elements */
  415.         /* [1] */
  416.         {55, 288, 75, 348},
  417.         Button {
  418.             enabled,
  419.             "OK"
  420.         };
  421.         /* [2] */
  422.         {10, 75, 42, 348},
  423.         StaticText {
  424.             disabled,
  425.             "Cannot add any more characters here."
  426.         };
  427.         /* [3] */
  428.         {10, 20, 42, 52},
  429.         Icon {
  430.             disabled,
  431.             stopIcon
  432.         }
  433.     }
  434. };
  435.  
  436. resource 'DITL' (phStylesTooBig,
  437. #if qNames
  438.     "phStylesTooBig",
  439. #endif
  440.     purgeable) {
  441.     {    /* array DITLarray: 3 elements */
  442.         /* [1] */
  443.         {71, 288, 91, 348},
  444.         Button {
  445.             enabled,
  446.             "OK"
  447.         };
  448.         /* [2] */
  449.         {10, 75, 58, 348},
  450.         StaticText {
  451.             disabled,
  452.             "Cannot remember the styles associated with the text. The text is intact, however."
  453.         };
  454.         /* [3] */
  455.         {10, 20, 42, 52},
  456.         Icon {
  457.             disabled,
  458.             stopIcon
  459.         }
  460.     }
  461. };
  462.  
  463. #if qPowerTalk
  464.  
  465. resource 'DITL' (phNoNextLetter,
  466. #if qNames
  467.     "phNoNextLetter",
  468. #endif
  469.     purgeable) {
  470.     {    /* array DITLarray: 3 elements */
  471.         /* [1] */
  472.         {55, 288, 75, 348},
  473.         Button {
  474.             enabled,
  475.             "OK"
  476.         };
  477.         /* [2] */
  478.         {10, 75, 42, 348},
  479.         StaticText {
  480.             disabled,
  481.             "There are no unread letters in the In Tray to open."
  482.         };
  483.         /* [3] */
  484.         {10, 20, 42, 52},
  485.         Icon {
  486.             disabled,
  487.             stopIcon
  488.         }
  489.     }
  490. };
  491.  
  492. resource 'DITL' (phNoSubject,
  493. #if qNames
  494.     "phNoSubject",
  495. #endif
  496.     purgeable) {
  497.     {    /* array DITLarray: 3 elements */
  498.         /* [1] */
  499.         {55, 288, 75, 348},
  500.         Button {
  501.             enabled,
  502.             "OK"
  503.         };
  504.         /* [2] */
  505.         {10, 75, 42, 348},
  506.         StaticText {
  507.             disabled,
  508.             "You cannot send a letter which does not have a subject."
  509.         };
  510.         /* [3] */
  511.         {10, 20, 42, 52},
  512.         Icon {
  513.             disabled,
  514.             stopIcon
  515.         }
  516.     }
  517. };
  518. resource 'DITL' (phNoRecipient,
  519. #if qNames
  520.     "phNoRecipient",
  521. #endif
  522.     purgeable) {
  523.     {    /* array DITLarray: 3 elements */
  524.         /* [1] */
  525.         {55, 288, 75, 348},
  526.         Button {
  527.             enabled,
  528.             "OK"
  529.         };
  530.         /* [2] */
  531.         {10, 75, 42, 348},
  532.         StaticText {
  533.             disabled,
  534.             "You cannot send a letter which does not have a recipient."
  535.         };
  536.         /* [3] */
  537.         {10, 20, 42, 52},
  538.         Icon {
  539.             disabled,
  540.             stopIcon
  541.         }
  542.     }
  543. };
  544.  
  545. #endif
  546.  
  547. resource 'ALRT' (phGenError,
  548. #if qNames
  549.     "phGenError",
  550. #endif
  551.     purgeable) {
  552.     {80, 80, 261, 438},
  553.     phGenError,
  554.     {    /* array: 4 elements */
  555.         /* [1] */
  556.         OK, visible, silent;
  557.         /* [2] */
  558.         OK, visible, silent;
  559.         /* [3] */
  560.         OK, visible, silent;
  561.         /* [4] */
  562.         OK, visible, silent
  563.     },
  564.     alertPositionParentWindowScreen
  565. };
  566.  
  567. resource 'ALRT' (phCommandError,
  568. #if qNames
  569.     "phCommandError",
  570. #endif
  571.     purgeable) {
  572.     {80, 80, 261, 438},
  573.     phCommandError,
  574.     {    /* array: 4 elements */
  575.         /* [1] */
  576.         OK, visible, silent;
  577.         /* [2] */
  578.         OK, visible, silent;
  579.         /* [3] */
  580.         OK, visible, silent;
  581.         /* [4] */
  582.         OK, visible, silent
  583.     },
  584.     alertPositionParentWindowScreen
  585. };
  586.  
  587. resource 'ALRT' (phUnknownErr,
  588. #if qNames
  589.     "phUnknownErr",
  590. #endif
  591.     purgeable) {
  592.     {80, 80, 261, 438},
  593.     phUnknownErr,
  594.     {    /* array: 4 elements */
  595.         /* [1] */
  596.         OK, visible, silent;
  597.         /* [2] */
  598.         OK, visible, silent;
  599.         /* [3] */
  600.         OK, visible, silent;
  601.         /* [4] */
  602.         OK, visible, silent
  603.     },
  604.     alertPositionParentWindowScreen
  605. };
  606.  
  607. resource 'ALRT' (phSpaceIsLow,
  608. #if qNames
  609.     "phSpaceIsLow",
  610. #endif
  611.     purgeable) {
  612.     {100, 110, 185, 468},
  613.     phSpaceIsLow,
  614.     {    /* array: 4 elements */
  615.         /* [1] */
  616.         OK, visible, silent;
  617.         /* [2] */
  618.         OK, visible, silent;
  619.         /* [3] */
  620.         OK, visible, silent;
  621.         /* [4] */
  622.         OK, visible, silent
  623.     },
  624.     alertPositionParentWindowScreen
  625. };
  626.  
  627. resource 'ALRT' (phUnsupportedConfiguration,
  628. #if qNames
  629.     "phUnsupportedConfiguration",
  630. #endif
  631.     purgeable) {
  632.     {90, 110, 191, 468},
  633.     phUnsupportedConfiguration,
  634.     {    /* array: 4 elements */
  635.         /* [1] */
  636.         OK, visible, silent;
  637.         /* [2] */
  638.         OK, visible, silent;
  639.         /* [3] */
  640.         OK, visible, silent;
  641.         /* [4] */
  642.         OK, visible, silent
  643.     },
  644.     alertPositionMainScreen
  645. };
  646.  
  647. resource 'ALRT' (phSaveChanges,
  648. #if qNames
  649.     "phSaveChanges",
  650. #endif
  651.     purgeable) {
  652.     {86, 60, 187, 418},
  653.     phSaveChanges,
  654.     {    /* array: 4 elements */
  655.         /* [1] */
  656.         OK, visible, silent,
  657.         /* [2] */
  658.         OK, visible, silent,
  659.         /* [3] */
  660.         OK, visible, silent,
  661.         /* [4] */
  662.         OK, visible, silent
  663.     },
  664.     alertPositionParentWindowScreen
  665. };
  666.  
  667. resource 'ALRT' (phRevert,
  668. #if qNames
  669.     "phRevert",
  670. #endif
  671.     purgeable) {
  672.     {86, 60, 187, 418},
  673.     phRevert,
  674.     {    /* array: 4 elements */
  675.         /* [1] */
  676.         Cancel, visible, silent,
  677.         /* [2] */
  678.         Cancel, visible, silent,
  679.         /* [3] */
  680.         Cancel, visible, silent,
  681.         /* [4] */
  682.         Cancel, visible, silent
  683.     },
  684.     alertPositionParentWindowScreen
  685. };
  686.  
  687. resource 'ALRT' (phFileChanged,
  688. #if qNames
  689.     "phFileChanged",
  690. #endif
  691.     purgeable) {
  692.     {100, 110, 233, 468},
  693.     phFileChanged,
  694.     {    /* array: 4 elements */
  695.         /* [1] */
  696.         Cancel, visible, silent;
  697.         /* [2] */
  698.         Cancel, visible, silent;
  699.         /* [3] */
  700.         Cancel, visible, silent;
  701.         /* [4] */
  702.         Cancel, visible, silent
  703.     },
  704.     alertPositionParentWindowScreen
  705. };
  706.  
  707. resource 'ALRT' (phPurgeOld,
  708. #if qNames
  709.     "phPurgeOld",
  710. #endif
  711.     purgeable) {
  712.     {100, 110, 233, 468},
  713.     phPurgeOld,
  714.     {    /* array: 4 elements */
  715.         /* [1] */
  716.         Cancel, visible, silent;
  717.         /* [2] */
  718.         Cancel, visible, silent;
  719.         /* [3] */
  720.         Cancel, visible, silent;
  721.         /* [4] */
  722.         Cancel, visible, silent
  723.     },
  724.     alertPositionParentWindowScreen
  725. };
  726.  
  727. resource 'ALRT' (phReopenDoc,
  728. #if qNames
  729.     "phReopenDoc",
  730. #endif
  731.     purgeable) {
  732.     {100, 110, 185, 468},
  733.     phReopenDoc,
  734.     {    /* array: 4 elements */
  735.         /* [1] */
  736.         OK, visible, silent;
  737.         /* [2] */
  738.         OK, visible, silent;
  739.         /* [3] */
  740.         OK, visible, silent;
  741.         /* [4] */
  742.         OK, visible, silent
  743.     },
  744.     alertPositionMainScreen
  745. };
  746.  
  747. resource 'ALRT' (phOfferReadOnly,
  748. #if qNames
  749.     "phOfferReadOnly",
  750. #endif
  751.     purgeable) {
  752.     {100, 110, 208, 468},
  753.     phOfferReadOnly,
  754.     {    /* array: 4 elements */
  755.         /* [1] */
  756.         OK, visible, silent;
  757.         /* [2] */
  758.         OK, visible, silent;
  759.         /* [3] */
  760.         OK, visible, silent;
  761.         /* [4] */
  762.         OK, visible, silent
  763.     },
  764.     alertPositionMainScreen
  765. };
  766.  
  767. resource 'ALRT' (phTooManyChars,
  768. #if qNames
  769.     "phTooManyChars",
  770. #endif
  771.     purgeable) {
  772.     {100, 110, 185, 468},
  773.     phTooManyChars,
  774.     {    /* array: 4 elements */
  775.         /* [1] */
  776.         OK, visible, silent;
  777.         /* [2] */
  778.         OK, visible, silent;
  779.         /* [3] */
  780.         OK, visible, silent;
  781.         /* [4] */
  782.         OK, visible, silent
  783.     },
  784.     alertPositionParentWindowScreen
  785. };
  786.  
  787. resource 'ALRT' (phStylesTooBig,
  788. #if qNames
  789.     "phStylesTooBig",
  790. #endif
  791.     purgeable) {
  792.     {100, 110, 201, 468},
  793.     phStylesTooBig,
  794.     {    /* array: 4 elements */
  795.         /* [1] */
  796.         OK, visible, silent;
  797.         /* [2] */
  798.         OK, visible, silent;
  799.         /* [3] */
  800.         OK, visible, silent;
  801.         /* [4] */
  802.         OK, visible, silent
  803.     },
  804.     alertPositionParentWindowScreen
  805. };
  806.  
  807. #if qPowerTalk
  808. resource 'ALRT' (phNoNextLetter,
  809. #if qNames
  810.     "phNoNextLetter",
  811. #endif
  812.     purgeable) {
  813.     {100, 110, 185, 468},
  814.     phNoNextLetter,
  815.     {    /* array: 4 elements */
  816.         /* [1] */
  817.         OK, visible, silent;
  818.         /* [2] */
  819.         OK, visible, silent;
  820.         /* [3] */
  821.         OK, visible, silent;
  822.         /* [4] */
  823.         OK, visible, silent
  824.     },
  825.     alertPositionParentWindowScreen
  826. };
  827.  
  828. resource 'ALRT' (phNoSubject,
  829. #if qNames
  830.     "phNoSubject",
  831. #endif
  832.     purgeable) {
  833.     {100, 110, 185, 468},
  834.     phNoSubject,
  835.     {    /* array: 4 elements */
  836.         /* [1] */
  837.         OK, visible, silent;
  838.         /* [2] */
  839.         OK, visible, silent;
  840.         /* [3] */
  841.         OK, visible, silent;
  842.         /* [4] */
  843.         OK, visible, silent
  844.     },
  845.     alertPositionParentWindowScreen
  846. };
  847.  
  848. resource 'ALRT' (phNoRecipient,
  849. #if qNames
  850.     "phNoRecipient",
  851. #endif
  852.     purgeable) {
  853.     {100, 110, 185, 468},
  854.     phNoRecipient,
  855.     {    /* array: 4 elements */
  856.         /* [1] */
  857.         OK, visible, silent;
  858.         /* [2] */
  859.         OK, visible, silent;
  860.         /* [3] */
  861.         OK, visible, silent;
  862.         /* [4] */
  863.         OK, visible, silent
  864.     },
  865.     alertPositionParentWindowScreen
  866. };
  867.  
  868. #endif //powertalk
  869.  
  870. /* list mapping error codes to failure reasons */
  871.  
  872. resource 'errs' (errReasonID,
  873. #if qNames
  874.     "errReasonID",
  875. #endif
  876.     purgeable) {
  877.     {    whichList, 0, errReasonIDStrings;
  878.         
  879.         // Some of the following are out of order on purpose so that specific errors
  880.         // can be specified while still having a default range of errors covering
  881.         // those errors not specifically called out.
  882.         -27, -27, 10;        // printer I/O error [OR edition mgr error (IM VI 4-69)]
  883.         -34, -33, 2;        // disk full
  884.         -35, -35, 89;        // the volume cannot be found
  885.         -39, -39, 31;        // end of file error
  886.         -42, -42, 21;        // too many files are open
  887.         -43, -43, 32;        // file not found
  888.         -45, -45, 6;        // file locked
  889.         -46, -44, 3;        // volumes locked
  890.         -47, -47, 7;        // files are open
  891.         -49, -49, 7;        // can't have > 1 writer to a file
  892.         -51, -51, 27;        // Bad edition reference number
  893.         -53, -53, 20;        // volume offline
  894.         -54, -54, 6;        // can't open locked file for writing
  895.         -61, -61, 29;        // not a publisher
  896.         -84, -35, 5;        // other File Manager / disk errors - Default Range
  897.         -95, -91, 17;        // AppleTalk operation errors
  898.         -98, -97, 18;        // AppleTalk could not be opened
  899.         -102, -102, 28;        // Unknown edition format, or format not available
  900.         -117, -108, 4;        // Memory Manager errors
  901.         -124, -124, 14;     // Lost volume on AppleTalk
  902.         -127, -120, 5;        // HFS errors - Default Range
  903.         -128, -128, 65;        // User cancelled.
  904.         -192, -192, 22;        // Resource not found
  905.         -450, -450, 26;        // Edition Manager not initialized
  906.         -454, -454, 30;        // not a publisher
  907.         -1700, -1700, 34,    // can't coerce data to requested type
  908.         -1701, -1701, 35,    // a descriptor was not found
  909.         -1702, -1702, 36,    // data was corrupt and could not be read
  910.         -1703, -1703, 37,    // data was the wrong type
  911.         -1704, -1704, 38,    // of an invalid descriptor record
  912.         -1705, -1705, 39,    // of a bad list item
  913.         -1706, -1706, 40,    // a newer version of the AppleEvent Manager is required
  914.         -1707, -1707, 41,    // the event is not an AppleEvent
  915.         -1708, -1708, 42,    // the event was not handled
  916.         -1709, -1709, 43,    // the reply is not valid
  917.         -1710, -1710, 44,    // the sending mode is unknown
  918.         -1711, -1711, 45,    // the wait was canceled
  919.         -1712, -1712, 46,    // the event timed out
  920.         -1713, -1713, 47,    // no user interaction is allowed
  921.         -1714, -1714, 48,    // the keyword is not valid for a special function
  922.         -1715, -1715, 49,    // a required parameter is missing
  923.         -1716, -1716, 50,    // of an unknown AppleEvent address type
  924.         -1717, -1717, 51,    // a handler was not found
  925.         -1718, -1718, 52,    // the reply has not yet arrived
  926.         -1719, -1719, 53,    // of an invalid list index
  927.         -1720, -1720, 54,    // an invalid range was specified
  928.         -1721, -1721, 55,    // the number of arguments is wrong
  929.         -1723, -1723, 56,    // an object accessor was not found
  930.         -1725, -1725, 57,    // there is no such logical operator
  931.         -1726, -1726, 58,    // of a bad test key
  932.         -1727, -1727, 59,    // there is not an object specifier
  933.         -1728, -1728, 60,    // that object can not be found
  934.         -1729, -1729, 61,    // the number of objects is negative
  935.         -1730, -1730, 62,    // the container is an empty list
  936.         -1731, -1731, 63,    // of an unknown object type
  937.         -1732, -1732, 64,    // recording is already on
  938.         -1906, -1906, 87,   // there are open attachments
  939.         -1901, -1901, 88,   // there is a copy in progress
  940.         -4100, -4096, 10;    // printer comm error
  941.         -4101, -4101, 9;    // printer not found (PAP)
  942.         -5000, -5000, 15;    // AFP access error
  943.         -5006, -5006, 7;    // AFP: deny conflict
  944.         -5029, -5001, 14;    // AFP errors - Default Range
  945.         -20000, -20000, 8;    // MacApp error code: could not spool print file
  946.         -20001, -20001, 11; // MacApp error code: could not revert because file was deleted
  947.         -20003, -20003, 12; // MacApp error code: user tried to Save As or Save a Copy in an opened document
  948.         -20004, -20004, 13; // MacApp error code: user did Revert but file type changed
  949.         -20005, -20005, 16; // MacApp error code: printer driver file not found
  950.         -20006, -20006, 19; // Can't open file of given type
  951.         -20007, -20007, 23; // Function is not yet implemented
  952.         -20008, -20008, 24; // Class is missing. (Usually due to dead stripping)
  953.         -20009, -20009, 25; // Signature has no corresponding class
  954.         -20010, -20010, 33; // printer driver is in use by another application
  955.         -20012, -20012, 85; // there are no pages to print
  956.         -20013, -20013, 86; // no more characters can be added
  957.         -21001, -21001, 66;    // can't clone an object
  958.         -21002, -21002, 67;    // can't close an object
  959.         -21003, -21003, 68;    // can't count objects
  960.         -21004, -21004, 69;    // can't create an object
  961.         -21005, -21005, 70;    // can't delete an object
  962.         -21006, -21006, 71;    // can't determine if object exists
  963.         -21007, -21007, 72;    // can't get info on class
  964.         -21008, -21008, 73;    // can't get info on event
  965.         -21009, -21009, 74;    // can't get data for an object
  966.         -21010, -21010, 75;    // can't get size of an object's data
  967.         -21011, -21011, 76;    // can't move an object
  968.         -21012, -21012, 77;    // can't open an object
  969.         -21013, -21013, 78;    // can't print an object
  970.         -21014, -21014, 79;    // can't save an object
  971.         -21015, -21015, 80;    // can't set an object data
  972.         -21016, -21016, 81;    // can't revert an object
  973.         -21017, -21017, 83;    // can't set a read-only property
  974.         -21018, -21018, 84; // no such property
  975.  
  976.         minErr, maxErr, 1
  977.     }
  978. };
  979.  
  980.  
  981. /* list mapping error codes to recovery strings */
  982.  
  983. resource 'errs' (errRecoveryID,
  984. #if qNames
  985.     "errRecoveryID",
  986. #endif
  987.     purgeable) {
  988.     {    whichList, 0, errRecoveryIDStrings;
  989.         -42, -42, 4;
  990.         -45, -45, 1;
  991.         -4101, -4101, 2;
  992.         -20003, -20003, 3;
  993.         -20005, -20005, 2;
  994.         -20008, -20008, 5;
  995.         -20009, -20009, 5;
  996.         -20010, -20010, 6;
  997.  
  998.         // Edition Manager error recovery
  999.         -450, -450, 7;        // Edition Manager not initialized
  1000.     }
  1001. };
  1002.  
  1003. /* error explanations */
  1004.  
  1005. resource 'STR#' (errReasonIDStrings,
  1006. #if qNames
  1007.     "error explanations",
  1008. #endif
  1009.     purgeable) {
  1010.     {    /* [1] */    "of a program error";                                // catch-all
  1011.         /* [2] */    "the disk is full";
  1012.         /* [3] */    "the disk is locked";
  1013.         /* [4] */    "there is not enough memory";
  1014.         /* [5] */    "of a disk error";
  1015.         /* [6] */    "the file is locked";
  1016.         /* [7] */    "the file is already in use or was left open";
  1017.         /* [8] */    "of a problem writing the print file";
  1018.         /* [9] */    "the printer could not be found";
  1019.         /* [10] */    "of a problem communicating with the printer";
  1020.         /* [11] */    "its disk copy was deleted";
  1021.         // used when user picks Revert and file was deleted
  1022.  
  1023.         /* [12] */    "that document is currently open";
  1024.         // used when user does Save As or Save a Copy In and specifies a document that is already open
  1025.  
  1026.         /* [13] */    "its disk copy was changed";
  1027.         // used when user does a Revert and the file type has been changed
  1028.  
  1029.         /* [14] */    "of a problem with the file server";                // catch-all AFP error
  1030.         /* [15] */    "you do not have the necessary access privileges";    // AFP: access denied
  1031.         /* [16] */    "the selected printing resource could not be found";// Couldn't open print driver
  1032.         /* [17] */    "of a problem with AppleTalk";                        // AppleTalk operation errors
  1033.         /* [18] */    "AppleTalk is not connected";                        // AppleTalk open errors
  1034.         /* [19] */    "it is not the right kind of document";                // File is the wrong type
  1035.         /* [20] */    "the disk is not available";
  1036.         // Volume is offline: asynch I/O or command-.
  1037.  
  1038.         /* [21] */    "there are too many files open";                    // Resource not found
  1039.         /* [22] */    "the required resources were not found";
  1040.         /* [23] */    "this feature is not implemented";
  1041.         /* [24] */    "'^3', an internal component, is missing";            // Missing class
  1042.         /* [25] */    "an internal component is missing";                    // Missing signature
  1043.  
  1044.         // Edition Manager error reasons
  1045.         /* [26] */    "the Edition Manager isn't initialized";
  1046.         /* [27] */    "there is a problem accessing the edition";
  1047.         /* [28] */    "the specified format is not in the edition";
  1048.         /* [29] */    "the edition is not a publisher";
  1049.         /* [30] */    "there is a problem specifying the edition";
  1050.  
  1051.         // Miscellaneous
  1052.         /* [31] */    "end of file";
  1053.         /* [32] */    "file not found";
  1054.         /* [33] */    "the printer file is used by another application or the Chooser";// printer driver is open
  1055.  
  1056.         // AppleEvent Manager error reasons
  1057.         /* [34] */    "can't coerce data to requested type",
  1058.         /* [35] */    "a descriptor was not found",
  1059.         /* [36] */    "data was corrupt and could not be read",
  1060.         /* [37] */    "data was the wrong type",
  1061.         /* [38] */    "of an invalid descriptor record",
  1062.         /* [39] */    "of a bad list item",
  1063.         /* [40] */    "a newer version of the AppleEvent Manager is required",
  1064.         /* [41] */    "the event is not an AppleEvent",
  1065.         /* [42] */    "the event was not handled",
  1066.         /* [43] */    "the reply is not valid",
  1067.         /* [44] */    "the sending mode is unknown",
  1068.         /* [45] */    "the wait was canceled",
  1069.         /* [46] */    "the event timed out",
  1070.         /* [47] */    "no user interaction is allowed",
  1071.         /* [48] */    "the keyword is not valid for a special function",
  1072.         /* [49] */    "a required parameter is missing",
  1073.         /* [50] */    "of an unknown AppleEvent address type",
  1074.         /* [51] */    "a handler was not found",
  1075.         /* [52] */    "the reply has not yet arrived",
  1076.         /* [53] */    "of an invalid list index",
  1077.         /* [54] */    "an invalid range was specified",
  1078.         /* [55] */    "the number of arguments is wrong",
  1079.         /* [56] */    "an object accessor was not found",
  1080.         /* [57] */    "there is no such logical operator",
  1081.         /* [58] */    "of a bad test key",
  1082.         /* [59] */    "there is not an object specifier",
  1083.         /* [60] */    "that object can not be found",
  1084.         /* [61] */    "the number of objects is negative",
  1085.         /* [62] */    "the container is an empty list",
  1086.         /* [63] */    "of an unknown object type",
  1087.         /* [64] */    "recording is already on",
  1088.         /* [65] */    "the user cancelled",
  1089.         /* [66] */    "cannot duplicate this object",
  1090.         /* [67] */    "cannot close this object",
  1091.         /* [68] */    "cannot count these elements",
  1092.         /* [69] */    "cannot create an object",
  1093.         /* [70] */    "cannot delete this object",
  1094.         /* [71] */    "cannot tell if this object exists",
  1095.         /* [72] */    "cannot get class info for this object",
  1096.         /* [73] */    "cannot get event info",
  1097.         /* [74] */    "cannot get data for this object",
  1098.         /* [75] */    "cannot get the size of this object's data",
  1099.         /* [76] */    "cannot move this object",
  1100.         /* [77] */    "cannot open this object",
  1101.         /* [78] */    "cannot print this object",
  1102.         /* [79] */    "cannot save this object",
  1103.         /* [80] */    "cannot set the data for this object",
  1104.         /* [81] */    "cannot revert this object",
  1105.         /* [82] */    "an error [^ENUM] occurred",
  1106.         /* [83] */    "cannot set a read-only property",
  1107.         /* [84] */    "no such property",
  1108.  
  1109.         /* [85] */    "there are no pages to print",
  1110.         /* [86] */    "no more characters can be added",
  1111.         /* [87] */  "the letter has an open enclosure",
  1112.         /* [88] */  "there is a copy in progress",
  1113.         /* [89] */    "the disk does not seem to be available any more",
  1114.     }
  1115. };
  1116.  
  1117.  
  1118. /* recovery strings */
  1119.  
  1120. resource 'STR#' (errRecoveryIDStrings,
  1121. #if qNames
  1122.     "recovery strings",
  1123. #endif
  1124.     purgeable) {
  1125.     {    /* [1] */    "Use the 'Get Info' command in the Finder"
  1126.                         " to unlock the file.";
  1127.         /* [2] */    "Use 'Chooser' to select a printer and try again.";
  1128.         // this is used if (1) the chosen LaserWriter can't be found or
  1129.         // (2) the chosen printer driver file can't be found
  1130.  
  1131.         /* [3] */    "Save using a different name, or close the document and try again.";
  1132.         /* [4] */    "Try closing some windows and try again.";
  1133. #if qDebug
  1134.         /* [5] */    "Call Apple for a secret decoder ring.";
  1135. #else
  1136.         /* [5] */    "Please contact the developer.";
  1137. #endif
  1138.         /* [6] */    "Try closing the Chooser.";
  1139.         // Edition Manager error recovery
  1140. #if qDebug
  1141.         /* [7] */    "Call InitUEditionDocument()!"
  1142. #else
  1143.         /* [7] */    "Please contact the developer."
  1144. #endif
  1145.     }
  1146. };
  1147.  
  1148. /* strings describing the operation; these are used in error alerts */
  1149. resource 'STR#' (errOperationsIDStrings,
  1150. #if qNames
  1151.     "strings describing the operation",
  1152. #endif
  1153.     purgeable) {
  1154.     {    /* [1] */    "start the application";
  1155.         /* [2] */    "save '^3'";
  1156.         /* [3] */    "revert to the previous version of '^3'";
  1157.         /* [4] */    "print '^3'";
  1158.         /* [5] */    "create a new document";
  1159.         /* [6] */    "open '^3'";
  1160.         /* [7] */    "save as '^3'";
  1161.         /* [8] */    "save a copy in '^3'";
  1162.         /* [9] */    "display the contents of the window";
  1163.         /* [10] */    "make the clipboard available inside the application";
  1164.         /* [11] */    "make the clipboard available outside the application"
  1165.         
  1166.     }
  1167. };
  1168.